
export const baseInfo ={
  phone:'13111111110',
  type:'',
  headerID:'',
  headerTxt:'今日快报',
  init(){
    let v = getSession("urlVal") || false;
    if (v){
      this.headerTxt =getSession("header");
      this.phone = v.phoneNumber;
      this.type =getSession("userType");
      this.headerID =getSession("headerID");
    }
  }
};

export const base  = {
}

export const getSession =(val)=>sessionStorage.getItem(val);

export const eleHandle  = {
  removeEle(el){
    el.parentNode.removeChild(el);
  },
  eleHtml(el,string){
    el.innerHTML = string;
  },
  hide(el){
    el.style.display = 'none';
  },
  show(el){
    el.style.display = '';
  }
}




